Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Does anyone have a .dll version Socket.so or its sourse code

Seto

Member

Well its pretty much summed up in the title:  Does anyone have a .dll version Socket.so or its sourse code.

I need/want to use the Socket.so functions in my game. I have tried a couple ways of getting  around using the socket.so file like getting the functions needed from other .dll files but when a piece of code wants to call the function "Read" or something so common there is no telling what .dll file I need. (I am using a script that wasn't made from rmxp) If I can get hold of the source code for the socket.so file I can create the .dll I need, or if there is already a suitable one out there I can just use that instead.
 
You should use WSock32.dll (in windows) or Ws2_32 ( Windows too)

e.g
Win32API.new("wsock32", "inet_addr", "P", "N")

-functions:
Socket
connect
bind
listen
send
recv

that's all I know about it
 
I posted this before, but the form crash deleted it.
C:\ruby\src\ruby-1.8.6-p111\ext\socket
That takes you to where Socket.c is, ofcourse, replace 1.8.6 with what ever version of ruby you have.
I am trying the same thing you are trying, good luck.
 

Seto

Member

Thanks Guys, With the socket.c and socket.h I should be able to make a .dll version and then I can use the "Win32API.new("wsock32", "inet_addr", "P", "N")" piece of script to use it :D(Changing the names of course). I am using other .dll's with the game so I know how to read from .dll's :P.

Ok I tried making a .dll from the socket source code but it didn't work :(, I need to find a .dll with the following functions read and sync that do the same things as the socket.so file. I dont know if this is possible though. I also needed the function setsockopt but I found that ws2_32.dll covers this function.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top