I am writing an RPG Sockets program and when I call the "C" socket() function, I am receiving an "EMFILE 3452 Too many open files for this process" error. However, there are no other files open in this program.
The code and prototypes are exactly the same as an existing "C" client that is working.
Its fairly straightforward and seems like it should be working.
Any ideas on what is happening would be appreciated.
0068.00 d Socket pr 10i 0 ExtProc('socket')
0069.00 d prSockFam 10i 0 Value
0070.00 d prAddrType 10i 0 Value
0071.00 d prProtocol 10i 0 Value
0187.00 d AF_INET c Const(2)
0188.00 d SOCK_STREAM c Const(1)
0189.00 d PROTOCOL c Const(0)
0390.00 socket1 = Socket(AF_INET:SOCK_STREAM:PROTOCOL);