This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Point p2 = p1; | |
Form f2 = f1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IPAddress ip = IPAddress.Parse("192.168.1.2"); | |
IPEndPoint IpPort = new IPEndPoint(ip, Convert.ToInt32("12345")); | |
Socket main_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); | |
main_socket.Bind(IpPort); | |
//////////////////////////////////////////////////////////////////// | |
IPAddress ip = IPAddress.Parse("192.168.1.2"); | |
IPEndPoint IpPort = new IPEndPoint(ip, Convert.ToInt32("12345")); | |
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socket.Close(); | |
socket.Shutdown(System.Net.Sockets.SocketShutdown.Both); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IPAddress ip = IPAddress.Parse("192.168.1.2"); | |
IPEndPoint IpPort = new IPEndPoint(ip, Convert.ToInt32("12345")); | |
Socket main_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); | |
main_socket.Bind(IpPort); | |
main_socket.Listen(int.MaxValue); | |
Socket client= main_socket.Accept(); | |
byte[] msg = System.Text.Encoding.UTF8.GetBytes("Hi"); | |
client.Send(msg); | |
client.Close(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IPAddress ip = IPAddress.Parse("192.168.1.2"); | |
IPEndPoint IpPort = new IPEndPoint(ip, Convert.ToInt32("12345")); | |
Socket main_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); | |
main_socket.Bind(IpPort); | |
main_socket.Listen(int.MaxValue); | |
while (true) | |
{ | |
Socket client = main_socket.Accept(); | |
byte[] msg = System.Text.Encoding.UTF8.GetBytes("Hi"); | |
client.Send(msg); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sadsadsads | |
sadsadsa | |
sadsadasdas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
> | |
<TableLayout | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:stretchColumns="*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
> | |
<TableLayout | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:stretchColumns="*" | |
> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<stdio.h> | |
using namespace std; | |
int main() | |
{ | |
int a[10], b[10], c[20]; | |
for (int i = 0; i < 10; i++) | |
a[i] = b[i] = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String line="The Eclipse IDE allows to perform <img src=\"smiley.gif\"></img> search and replace across a set of files <img src=\"abbas.gif\"></img> using regular expressions."; | |
Pattern pattern = Pattern.compile("<img src=\".*?\"></img>"); | |
Matcher matcher = pattern.matcher(line); | |
while (matcher.find()) { | |
Log.d("output : ",matcher.group()); | |
} |