| 855 int command; |
855 int command; |
| 856 |
856 |
| 857 read(source, header, 4); |
857 read(source, header, 4); |
| 858 len = header[0]; |
858 len = header[0]; |
| 859 command = header[1]; |
859 command = header[1]; |
| 860 |
860 |
| 861 read(source, buf, len); |
861 read(source, buf, len); |
| 862 buf[len] = 0; |
862 buf[len] = 0; |
| |
863 |
| |
864 /* If we have some kind of error, get outta here */ |
| |
865 if (command == 0x00) |
| |
866 { |
| |
867 do_error_dialog(buf, "Gaim: Napster Error"); |
| |
868 gdk_input_remove(ndata->inpa); |
| |
869 ndata->inpa = 0; |
| |
870 close(source); |
| |
871 signoff(gc); |
| |
872 return; |
| |
873 } |
| 863 |
874 |
| 864 if (command == 0x03) { |
875 if (command == 0x03) { |
| 865 printf("Registered with E-Mail address of: %s\n", buf); |
876 printf("Registered with E-Mail address of: %s\n", buf); |
| 866 ndata->email = g_strdup(buf); |
877 ndata->email = g_strdup(buf); |
| 867 |
878 |