Jump to content


Photo

php sockets classes


  • Please log in to reply
1 reply to this topic

#1 steven_84

steven_84
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 19 April 2006 - 01:11 PM

HI,

I having been using sockets and wanted to split the connection class i have into to seperate functions.

but when i do i get errors i think its because the information is being passed between the functions, but I have been unable to work out how to do this

in the first function i have the socket_create, socket_bind and socket_listen commands and in the second function i have the socket_accept and socket_getpeername.

the errors i have been getting have been

"Warning: socket_accept() expects parameter 1 to be resource, null given in"

any ideas?

thanks
steven

#2 steven_84

steven_84
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 19 April 2006 - 09:02 PM

anyone?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users