1

What is equivalent of these two php functions?

socket_create(AF_INET, SOCK_STREAM, SOL_TCP) socket_read($socketResource, $Port) 
3
  • 1
    have you tried googling? Commented Jun 27, 2012 at 10:16
  • @GazWinter yes, but I just started the c# programming and really don't what should I search for it... Commented Jun 27, 2012 at 10:21
  • Well i have posted a couple of links below to get you started. Commented Jun 27, 2012 at 10:22

4 Answers 4

3

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

Sign up to request clarification or add additional context in comments.

Comments

1

Check out the .Net Socket class.

Comments

1

Read through this. Hope it helps.

c# Socket Class

Comments

0

Have a look at the following resources:

How to create a socket

Socket Class

Hope they are useful.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.