+ Reply to Thread
Results 1 to 4 of 4

Thread: netlog.irx

  1. #1
    Join Date
    Sep 2006
    Location
    Germany
    Posts
    549

    Default netlog.irx

    Here's the source code of netlog.irx. I developed it originally for debugging purposes and to get used to IOP/RPC programming.

    From the README:

    Code:
    netlog 1.1 - Copyright (C) 2009 misfire <misfire@xploderfreax.de>
    
    
      DESCRIPTION
    
    The netlog IOP module allows you to send (UDP) log messages to a remote host.
    
    
      USAGE
    
    Simply execute SifLoadModule() or use ps2client to run netlog.
    
    $ ps2client -t 1 execiop host:netlog.irx
    
    To use the service from your IRX, add netlog.h to your irx_imports.h file.
    
    Also, add the following to imports.lst:
    
    netlog_IMPORTS_start
    I_netlog_init
    I_netlog_exit
    I_netlog_send
    netlog_IMPORTS_end
    
    Call those functions inside your IRX to init the netlog service and start
    sending log messages. Please note that netlog_send() does NOT support floating
    point format specifiers like %f.
    
    On the remote host, you can use netcat to grab the log messages in UDP mode.
    
    Example:
    
    $ nc -l -u -p 7411
    
    The messages should appear on the screen.
    
    
      RPC
    
    netlog comes with an RPC interface. To enable it, define NETLOG_RPC inside the
    Makefile.
    
    
      LICENSE
    
    netlog is licensed under the AFL v2.0.  See file LICENSE.
    netlog-iop+ee-1.1.tar.gz

  2. #2
    Join Date
    Jul 1999
    Posts
    7,089

    Default

    Cool; thanks for sharing. There seems to be a shortage of PS2 network-related source out there...
    I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

  3. #3
    Join Date
    Sep 2006
    Location
    Germany
    Posts
    549

    Default

    It's also very useful for Core Launcher and similar projects to send debug messages during gameplay. Jimmi said he would add it soon.

  4. #4
    Join Date
    Jul 1999
    Posts
    7,089

    Default

    Ah; very cool. Perhaps that will allow us to better ascertain why certain games fail.

    Viper's been doing work on the comparative search features; we shall soon have basic code-hacking functionality
    I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     
Collapse this box.

Visitors found this page by searching for:

Nobody landed on this exact page from a search engine, yet!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts