Reputation: 47
What is equivalent of these two php functions?
socket_create(AF_INET, SOCK_STREAM, SOL_TCP)
socket_read($socketResource, $Port)
Upvotes: 1
Views: 2735
Reputation: 11201
Examples: 1)
Socket s = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
2)
s.Connect(host, port)
for more knowledge please use the link http://msdn.microsoft.com/en-us/library/attbb8f5
Upvotes: 3