ssfpc.inc fixes by ACBr
git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@242 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
		| @@ -364,7 +364,7 @@ type | ||||
|         case sin_family: sa_family_t of | ||||
|           AF_INET: (sin_port: word; | ||||
|                     sin_addr: TInAddr; | ||||
|                     sin_zero: array[0..7] of Char); | ||||
|                     sin_zero: array[0..7] of byte); | ||||
|           AF_INET6: (sin6_port:     word; | ||||
|                 		sin6_flowinfo: longword; | ||||
|       	    	      sin6_addr:     TInAddr6; | ||||
| @@ -861,11 +861,13 @@ begin | ||||
|   if Result = 0 then | ||||
|   begin | ||||
|     ProtoEnt.Name := ''; | ||||
|     GetProtocolByNumber(SockProtocol, ProtoEnt); | ||||
|     if GetProtocolByNumber(SockProtocol, ProtoEnt) then | ||||
|     begin | ||||
|       ServEnt.port := 0; | ||||
|     GetServiceByName(Port, ProtoEnt.Name, ServEnt); | ||||
|       if GetServiceByName(Port, ProtoEnt.Name, ServEnt) then | ||||
|         Result := synsock.ntohs(ServEnt.port); | ||||
|     end; | ||||
|   end; | ||||
| end; | ||||
|  | ||||
| function ResolveIPToName(IP: string; Family, SockProtocol, SockType: integer): string; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user